package cn.zqy.demo.day08;

import java.util.Arrays;

public class Demo02ArraysPrictice {
    public static void main(String[] args) {
        String str = "asdwefjiajcnbiqwAFregergFHTR";
        char[] ch = str.toCharArray();
        Arrays.sort(ch);
        System.out.println("升序排列字符串数组："+ Arrays.toString(ch));
        System.out.println(ch.length);
        for (int i = ch.length - 1; i > -1; i--) {
            System.out.print(ch[i]);
        }
    }
}
